Skip to content

Commit bcd9669

Browse files
committed
add note about label attribute
1 parent 01e1283 commit bcd9669

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56719,6 +56719,11 @@ interface <dfn interface>HTMLSelectedContentElement</dfn> : <span>HTMLElement</s
5671956719
can be used to declaratively show the selected <code>option</code> element's contents within the
5672056720
<code>select</code> element's first child <code>button</code> element.</p>
5672156721

56722+
<p class="note">The <code>option</code> element's <code data-x="attr-option-label">label</code>
56723+
attribute can be used to render a visible label for the option, but the
56724+
<code>selectedcontent</code> element will not reflect the content of the <code
56725+
data-x="attr-option-label">label</code> attribute.</p>
56726+
5672256727
<p w-dev>Every time the selected <code>option</code> of a <code>select</code> switches from one
5672356728
option to another, the <code>selectedcontent</code> element removes all of its children and
5672456729
replaces them with a new copy of the DOM structure of the <code>select</code>'s selected

0 commit comments

Comments
 (0)